﻿@using ZhouYu.DreamTour.Model;
@using ZhouYu.DreamTour.Web.Models;
@{
    var user = ViewBag.user as UserInfo;
    var cash = ViewBag.cash as Cashnumber;
    var order = ViewBag.order as List<OrderInfo>;
    var UserInfo = UserInfoContext.userInfoContext.UserInfo;
}
<!DOCTYPE html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>中国梦想游-会员登录页</title>
    <link href="~/css/style.css" rel="stylesheet" type="text/css" />
    <link href="~/css/common.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="~/js/jquery-1.9.1.min.js"></script>
    <script type="text/javascript" src="~/js/Format.js"></script>
</head>
<body>
    <div class="top_hw clearfix">
        <div class="top_h clearfix">
            <div class="top_hl"><span>欢迎来到中国梦想游，让你的梦想全程免费自由行！</span> 预定热线：<b>0571-63322269</b></div>
            <div class="top_hr">
                @if (UserInfo == null)
                {
                    <a href="/Home/User_Register">会员注册</a>
                    <span>|</span> <a href="/Home/User_Login">登录</a>
                    <span>|</span> <a href="#">梦想收藏</a> <span>|</span> <a href="#">设为首页</a>
                    @*<a>
                欢迎你，来到新世界旅行网！
            </a>*@
                }
                else
                {
                    <a href="/Home/User_Center">会员中心</a>
                    <span>|</span> <a href="#">梦想收藏</a> <span>|</span> <a href="#">设为首页</a> <span>|</span> <a href="/Login/LoginOut">退出</a> <span>|</span>
                    <a>
                        欢迎你，<span>@UserInfo.User_Name</span>来到新世界旅行网！
                    </a>
                }
            </div>
        </div>
    </div>
    <div class="head_w">
        <div class="head_t clearfix">
            <div class="logo"><img src="~/images/logo.jpg"></div>
            <div class="rx_line"><img src="~/images/rx.jpg"></div>
        </div>
    </div>
    <div class="mainNav clearfix">
        <ul class="Nav_ul">
            <li><a href="/Home/Index">首页</a><img src="~/images/nav_line.jpg"></li>
            <li><a href="/Home/Route">旅游路线</a><img src="~/images/nav_line.jpg"></li>
            <li><a href="/Home/Scenic">旅游景点</a><img src="~/images/nav_line.jpg"></li>
            <li><a href="/Home/CateringAccommodation">餐饮住宿</a><img src="~/images/nav_line.jpg"></li>
            <li><a href="/Home/Traffic_DatailsOne">交通线路</a><img src="~/images/nav_line.jpg"></li>
            <li><a href="/Home/Group">旅游团购</a><img src="~/images/nav_line.jpg"></li>
            <li><a href="/Home/Specialty">地方特产</a><img src="~/images/nav_line.jpg"></li>
            <li><a href="/Home/AutoGenerationIntro">自动生成简介</a><img src="~/images/nav_line.jpg"></li>
            <li><a href="/Home/Team_Join">团队简介</a><img src="~/images/nav_line.jpg"></li>
            <li><a href="/Home/Itinerary_Details">行程导航</a></li>
        </ul>
    </div>
    <div class="b_wrap">
        <div class="current"><span>当前所在地：</span><a href="/Home/Index">首页</a> >> <a href="/Home/User_Center">会员中心</a></div>
        <div class="fmember">
            <div class="fmleft">
                <div class="fmleft_top"><img src="~/images/fmbt1.png" border="0"></div>
                <div class="fmlist">
                    <ul>
                        <li class="f1">订单中心</li>
                        <li> >><a href="/Home/User_Order">我的订单</a> </li>
                        <li> >><a href="/Home/User_Colleague">发布结伴同行</a> </li>
                        <li> >><a href="/Home/User_Apply">我申请的结伴同行</a> </li>
                        <li> >><a href="/Home/User_Comment">我的点评</a> </li>
                        <li class="f2"> >><a href="/Home/User_Questions">我的提问</a> </li>
                    </ul>
                    <ul>
                        <li class="f1">我的优惠卡券</li>
                        <li> >><a href="/Home/User_CashAccount">现金账号</a> </li>
                        <li> >><a href="/Home/User_AllowanceVol">抵用券</a> </li>
                        <li class="f2"> >><a href="/Home/User_TouristVol">旅游券</a> </li>
                    </ul>
                    <ul>
                        <li class="f1">账户信息</li>
                        <li> >><a href="/Home/User_Data">个人资料</a> </li>
                        <li> >><a href="/Home/User_AccountSecurity">账户安全</a> </li>
                        <li>
                            >>
                            <a href="/Home/User_Bank">我的银行卡</a>
                        </li>
                        <li> >><a href="/Home/User_Integral">我的积分</a> </li>
                        <li> >><a href="/Home/User_UpdatePwd">修改密码</a> </li>
                        <li class="f2"> >><a href="/Home/User_Address">配送地址</a> </li>
                    </ul>
                </div>
            </div>
            <div class="fmright">
                <div class="fmr1">
                    <div class="fmr1_top">会员中心</div>
                    <div class="fmr1_m">
                        <div class="fgr">
                            <div class="fgr_tx">
                                <div class="fgr_tx1"><img src="~/images/ftx.png"></div>
                                <div class="fgr_tx2"><a href="#">编辑个人资料</a></div>
                            </div>
                            <!--显示用户抵用卷、现金账号、旅游卷余额-->
                            <div class="fgr_zl">
                                <p class="fp2">@user.User_NickName，<span class="fspan1">您好！</span></p>
                                <p class="fp1">安全级别：<img src="~/images/fgrpic1.png" align="absmiddle"> &nbsp;&nbsp;<img src="~/images/ficon1.png">&nbsp;&nbsp;<img src="~/images/ficon2.png">&nbsp;&nbsp; 验证手机和邮箱可分别获得&nbsp;&nbsp;<a href="#">安全设置</a></p>
                                <p class="fp2">现金账户：<span class="fspan2">￥@cash.Cash_balance</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;抵用劵：<span class="fspan2">￥@user.User_VoucherCount</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;旅游劵：<span class="fspan2">￥@user.User_TravelVoCount</span>   </p>
                            </div>
                            <br style="clear:both">
                        </div>
                        <div class="forder">
                            <div class="for_top">
                                <div class="for_t4">订单编号</div>
                                <div class="for_t2">产品信息</div>
                                <div class="for_t3">订单金额</div>
                                <div class="for_t3">订单状态</div>
                                <div class="for_t3">操作</div>
                                <br style="clear:both">
                            </div>
                            <!--显示用户订单-->
                            @for (int i = 0; i < order.Count; i++)
                            {
                                <div class="for_m">
                                    <div class="for_t4">
                                        订 单 号：@order[i].Order_Id <br>
                                        预定时间：<span class="Order_ReserveTime">@order[i].Order_ReserveTime</span><br>
                                        出游时间：<span class="Order_OutingTime">@order[i].Order_OutingTime</span>
                                    </div>
                                    <div class="for_t2">
                                        @*<img src="~/images/forpic1.png" align="absmiddle">*@&nbsp;<span class="fspan3" style="width:100%">@order[i].Order_ProInfo</span>
                                    </div>
                                    <div class="for_t3">@order[i].Order_Money</div>
                                    @if (order[i].Order_Status == 1)
                                    {
                                        <div class="for_t3">已付款</div>
                                    }
                                    else
                                    {
                                        <div class="for_t3">待付款</div>
                                    }
                                    <div class="for_t3"><a href="#">去付款</a><a href="#" class="a1">查看</a></div>
                                    <br style="clear:both">
                                </div>
                                if (i == 3)
                                {
                                    break;
                                }
                            }
                        </div>
                    </div>
                </div>
                <div class="fmr2">
                    <div class="fmr2_top"><span class="fspan4"><a href="#">更多>></a></span>杭州周边热门景点</div>
                    <div class="fmr2_m">
                        <div class="fmr2_m1">
                            <div class="fmr2_m1pic"><img src="~/images/fzbpic1.png"></div>
                            <div class="fmr2_m1text"><a href="#">西湖</a></div>
                        </div>
                        <div class="fmr2_m1">
                            <div class="fmr2_m1pic"><img src="~/images/fzbpic1.png"></div>
                            <div class="fmr2_m1text"><a href="#">西湖</a></div>
                        </div>
                        <div class="fmr2_m1">
                            <div class="fmr2_m1pic"><img src="~/images/fzbpic1.png"></div>
                            <div class="fmr2_m1text"><a href="#">西湖</a></div>
                        </div>
                        <div class="fmr2_m1">
                            <div class="fmr2_m1pic"><img src="~/images/fzbpic1.png"></div>
                            <div class="fmr2_m1text"><a href="#">西湖</a></div>
                        </div>
                        <div class="fmr2_m1">
                            <div class="fmr2_m1pic"><img src="~/images/fzbpic1.png"></div>
                            <div class="fmr2_m1text"><a href="#">西湖</a></div>
                        </div>
                        <div class="fmr2_m1">
                            <div class="fmr2_m1pic"><img src="~/images/fzbpic1.png"></div>
                            <div class="fmr2_m1text"><a href="#">西湖</a></div>
                        </div>
                        <div class="fmr2_m1">
                            <div class="fmr2_m1pic"><img src="~/images/fzbpic1.png"></div>
                            <div class="fmr2_m1text"><a href="#">西湖</a></div>
                        </div>
                        <div class="fmr2_m1">
                            <div class="fmr2_m1pic"><img src="~/images/fzbpic1.png"></div>
                            <div class="fmr2_m1text"><a href="#">西湖</a></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
<script>
    var rTime = $(".Order_ReserveTime");
    var oTime = $(".Order_OutingTime");

    rTime.each(function (i, data) {
        $(this).text(Format($(this).text(), "yyyy-MM-dd "));
    });

    oTime.each(function (i, data) {
        $(this).text(Format($(this).text(), "yyyy-MM-dd "));
    });
</script>
</html>

